<div id="_treeDiv" class="tree"><div id="${parameters.name}domRoot"></div></div>
<script>
	var ${parameters.name}TreeRoot = eval("(${parameters.treeJsonData?js_string})");
 	TreeUtil.ICONPATH =  "${base}/struts/geni/images/tree/";
	var ${parameters.name} = new Best.Tree(
				{
					name: "${parameters.name}",
					root: ${parameters.name}TreeRoot,
					getChildrenDataUrl: "${parameters.getChildrenDataUrl?default("")}",
					isShowCheckbox: ${parameters.isShowCheckbox?string},
					isShowIcon: ${parameters.isShowIcon?string},
					isShowToolbar: ${parameters.isShowToolbar?string},
					onnodeclick: ${parameters.onnodeclick?default("null")},
					onnodedblclick: ${parameters.onnodedblclick?default("null")},
					oncheckboxclick: ${parameters.oncheckboxclick?default("null")},
					createActionUrl: "${parameters.createActionUrl?default("null")}", //创建新节点的action url
					searchActionUrl: "${parameters.searchActionUrl?default("null")}", //搜索的action url
					computeCheckedNodeKeysActionUrl: "${parameters.computeCheckedNodeKeysActionUrl?default("null")}", //计算选中的节点的key列表的action url
					afterAddFolder: ${parameters.afterCreate?default("Prototype.emptyFunction")},
					afterAddFile: ${parameters.afterCreate?default("Prototype.emptyFunction")},
					updateActionUrl: "${parameters.updateActionUrl?default("null")}", //修改节点的action url
					afterEdit: ${parameters.afterUpdate?default("Prototype.emptyFunction")},
					deleteActionUrl: "${parameters.deleteActionUrl?default("null")}", //删除节点的action url
					afterDelete: ${parameters.afterDelete?default("Prototype.emptyFunction")},
					changeParentActionUrl: "${parameters.changeParentActionUrl?default("null")}", //修改节点的父节点的action url
					afterChangeParent: ${parameters.afterChangeParent?default("Prototype.emptyFunction")},
					checkedNodeKeys: eval(${parameters.checkedNodeKeys?default("[]")}), //选中的节点的key的列表
					scrollContainerId: '${parameters.scrollContainerId}',
					isRecursive: ${parameters.isRecursive?string}
				});
	
</script>

